<Select Mode="multiple"
        LabelInValue
        Placeholder="Select users"
        FilterOption=true
        OnSearch="@OnSearch"
        OnChange="@OnChange"
        Style="width:100%">
    @foreach (var item in _items)
    {
        <SelectOption Value="@item">@item</SelectOption>
    }
</Select>

@using OneOf;
@code
{
    private readonly string[] _items = new string[0];

    private void OnSearch(string value) { }

    private void OnChange(OneOf<string, IEnumerable<string>, LabeledValue, IEnumerable<LabeledValue>> value, OneOf<SelectOption, IEnumerable<SelectOption>> option)
    {
        Console.WriteLine($"selected: ${value}");
    }
}
